home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 April
/
EnigmA AMIGA RUN 06 (1996)(G.R. Edizioni)(IT)[!][issue 1996-04][Skylink CD V].iso
/
progs
/
editor
/
write-ed
/
rexx
/
closedown.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-07-20
|
963b
|
54 lines
/*
* Dieses Script schaltet den Sleep-Modus aus,
* schließt alle Fenster von WRITE mit Sicherheitsabfrage und sorgt somit
* dafür, daß WRITE beendet wird.
*
* Dieses Script ist dafür da WRITE zu beenden, wenn durch ungeschickte
* Konfiguration dies nicht mehr aus WRITE selbst heraus möglich ist.
*
* $VER: CloseDown.wrx 1.0
*
* NOTE: Since QuickWrite now has the QUIT-Option this script is opsolent
*
*/
OPTIONS RESULTS
SIGNAL ON SYNTAX
ADDRESS "WRITE"
'VERSIONCHECK 40000 "CloseDown.wrx"'
IF RC~=0 THEN DO
exit 10
END
ID = 0
NEXTED ID
do while RC=0
'GETVAR "_CurrentID"'
ID = Result
'GETVAR "_changed"'
if Result=1 then do
'ASK "File\n$_FileName$\n has been modified" "_Save & Quit*|_Quit^"'
if Result=0 then do
'SAVE _FileName'
end
'SETVAR "_changed" FALSE'
end
QUITED
NEXTED ID
end
'SETVAR "_SleepMode" 0'
EXIT
SYNTAX :
if rc=13 then do
end
else do
say "Fehler : " rc errortext(rc)
end